package top.arryweb.application.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description 获取资金流水
 * @Author mac
 * @Date 2021/5/31
 **/

@ApiModel("DTO-创建资金流水")
@NoArgsConstructor
@Data
public class CreateCapitalBlotterDTO {
  @ApiModelProperty(value = "订单流水Id",required = true)
  @NotNull(message = "订单流水Id不为空")
  private Long orderId;

  @ApiModelProperty("资金流水类型id")
  private Long capitalDailyTypeId;

  @ApiModelProperty(value = "交易流水Id",required = true)
  @NotNull(message = "交易流水Id不为空")
  private Long tradeBlotterId;

  @ApiModelProperty(value = "商户id，如果是单用户可不填写")
  private Long merchantId;

  @ApiModelProperty(value = "用户id，向商户支付或者退款的用户id")
  private Long userId;

  @ApiModelProperty(value = "金额")
  private BigDecimal amount;

  @ApiModelProperty(value = "支付类型(1支付，2退款)",allowableValues = "1,2" )
  @Size(min = 1,max = 2)
  private Integer payType;

  @ApiModelProperty(value = "备注")
  private String remark;

}
